OSAC-853: add AAP presubmit e2e-vmaas job#79365
Conversation
|
@omer-vishlitzky: This pull request references OSAC-853 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThis PR embeds a build source SHA into two PR images, updates promotion/release/test wiring, and updates the cluster boot script to read that SHA and apply sed-based AAP overrides during the refresh step. ChangesAAP Source SHA Tracking and Override Mechanism
Sequence Diagram(s)sequenceDiagram
participant CI as CI Builder
participant Installer as installer image (osac-installer-with-pr)
participant Boot as cluster boot script
participant Refresh as scripts/refresh-after-snapshot.sh
CI->>Installer: build image and embed .aap-source-sha
Boot->>Installer: read .aap-source-sha from image
Boot->>Boot: construct AAP_OVERRIDE_CMD (set AAP_PROJECT_GIT_BRANCH[, AAP_EE_IMAGE])
Boot->>Refresh: run with COMPONENT_OVERRIDE_CMD + AAP_OVERRIDE_CMD
Refresh->>Installer: apply sed overrides to kustomization.yaml
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
57679bb to
0557df8
Compare
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
ed84f7c to
9a04463
Compare
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
abf5e39 to
0ef5732
Compare
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@omer-vishlitzky, |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
Add e2e-vmaas presubmit test for osac-aap PRs. Unlike other OSAC components, AAP has three independently-versioned artifacts: the execution environment image, playbooks synced from git, and config manifests. The standard single-image swap doesn't cover playbook sync. Build the EE image from the PR source, copy config/ into the installer, and embed the PR head SHA as a marker file. The boot script detects the marker and overrides AAP_PROJECT_GIT_BRANCH and AAP_EE_IMAGE in the kustomize overlay so AAP uses the PR's code for all three artifacts.
39a9c6f to
9697d15
Compare
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/hold |
akshaynadkarni
left a comment
There was a problem hiding this comment.
Left a couple of comments and added /hold. Comments are nits. PTAL prior to using /unhold.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akshaynadkarni, omer-vishlitzky The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/test openshift-image-mirror-mappings |
|
/pj-rehearse ack |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/unhold |
|
@omer-vishlitzky: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
…ft#79365) Add e2e-vmaas presubmit test for osac-aap PRs. Unlike other OSAC components, AAP has three independently-versioned artifacts: the execution environment image, playbooks synced from git, and config manifests. The standard single-image swap doesn't cover playbook sync. Build the EE image from the PR source, copy config/ into the installer, and embed the PR head SHA as a marker file. The boot script detects the marker and overrides AAP_PROJECT_GIT_BRANCH and AAP_EE_IMAGE in the kustomize overlay so AAP uses the PR's code for all three artifacts.
Summary
AAP_PROJECT_GIT_BRANCHandAAP_EE_IMAGEin the kustomize overlay so AAP uses the PR's playbooks and EE instead of the pinned versionsWhy AAP is different
Unlike other OSAC components (single container image), AAP has three independently-versioned artifacts that must all come from the PR:
kustomize edit set image(existing mechanism) +AAP_EE_IMAGEsedAAP_PROJECT_GIT_BRANCHsed to PR head SHACOPY config/into installer (existing mechanism)The boot script detects a
.aap-source-shamarker file in the installer image. When present, it overrides the git ref and EE image. When absent (all other repos), it's a no-op.Jira: https://redhat.atlassian.net/browse/OSAC-853
Test plan
This PR adds an e2e-vmaas presubmit for osac-aap in OpenShift CI that builds and runs tests against the PR's artifacts (execution environment image, playbooks git ref, and installer config) rather than pinned/released artifacts.
What changed (practical impact)
Key changes
ci-operator config (ci-operator/config/osac-project/osac-aap/osac-project-osac-aap-main.yaml)
Cluster-tool boot script (ci-operator/step-registry/osac-project/cluster-tool/boot/osac-project-cluster-tool-boot-commands.sh)
Testing / behavior
Notes